You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a HighLevelContext to touch_data and _length_0_1_if_typetracer causes to_layout to be called on the array, which falls back to to_iter, which fails because it's a typetracer array. These functions only make sense if the argument is already a typetracer array, so this effectively breaks them. It's responsible for #3077 (comment) (which is an issue about a regression, and the last version they checked is, indeed, before this PR).
The reason you added HighLevelContext here was to propagate attrs. Is there a way to propagate attrs without something that eventually goes to to_layout? I could do it the pedestrian way of just checking for the things that need to be propagated, attrs and behaviors, and propagating them. I would be in favor of that for these exceptional functions—low-level functions that need to propagate high-level state—but if there's a utility function for it already, I ought to use that.
Is there a utility function for what I'm trying to do? If not, I'll happily do it the pedestrian way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR exposes the new
attrsmapping argument in theak.typetracerpublic L2 API.